package com.zhl.study.service;

import com.zhl.study.entity.User;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 * @description TODO
 * @Author: z156940l@outlook.com
 * @className LoginService
 * @Date: 2023/4/28 17:52
 */
@Service
public class LoginService {



    public User login(String userName, String passWord) {
        //假设登录成功
        if (!StringUtils.isEmpty(userName)&& !StringUtils.isEmpty(passWord)) {
            User user1 = new User();
            user1.setUserName("linlin");
            return user1;
        }
        return null;
    }
}